﻿<div id="login_bar">
    <div class="panel login-menus">
        <span>欢迎光临餐饮通网</span>
        @if (this.Context.User.Identity.IsAuthenticated)
        {
            <div><a target="_blank" href="https://localhost:44323/Home/Index">@this.Context.User.Identity.Name</a></div>
        }
        else
        {
            <div><a href="~/Account/Login">登录</a> / <a href="~/Account/Register">注册</a></div>
        }
    </div>
</div>
<div id="search_bar" class="panel">
    <a href="~/"><img class="logo" src="~/css/images/logo.png" /></a>
</div>
<div id="menu_bar">
    <div class="panel" style="display:flex;justify-content:left">
        <a href="~/" class="goto_home">主页</a>
        <ul class="main_menu">
            @*@foreach (var item in docTypes)
            {
                if (ViewBag.ContentTypeID == item.Id)
                {
                    <li class="current"><a href="@Url.Content(string.Format("{0}/{1}",item.URL, Base64.ObjectToBase64(new { ContentTypeID = item.Id })))" id="@item.Id">@item.Name</a></li>
                }
                else
                {
                    <li><a href="@Url.Content(string.Format("{0}/{1}",item.URL, Base64.ObjectToBase64(new { ContentTypeID = item.Id })))" id="@item.Id">@item.Name</a></li>
                }
            }*@
            <li><a href="~/DocRes" style="color: rgb(255, 40, 50);">文档资源</a></li>
        </ul>
    </div>
</div>